package com.mkono.infra.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.text.method.ScrollingMovementMethod;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.mkono.infra.R;

import org.xutils.view.annotation.ContentView;
import org.xutils.view.annotation.Event;
import org.xutils.view.annotation.ViewInject;
import org.xutils.x;

/**
 * Created by HUANG on 2020/3/2.
 */
@ContentView(R.layout.activity_useragree)
public class UserAgreeAvtivity extends BaseActivity {

    @ViewInject(R.id.title)
    TextView title;
    @ViewInject(R.id.user_agree)
    TextView user_agree;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        x.view().inject(this);
        init();
    }


    @Override
    public void initView() {
        title.setText("用户协议");
        user_agree.setMovementMethod(ScrollingMovementMethod.getInstance());
    }

    @Event(type = View.OnClickListener.class,value = {R.id.back})
    private void onClick(View view){
        switch (view.getId()){
            case R.id.back:
                UserAgreeAvtivity.this.finish();
                break;
        }
    }
}
